module.exports = app => {
    const { STRING, INTEGER} = app.Sequelize;

    // 默认情况seqyuelize自动将模型名称转为复数(加了一个s)
    const Student = app.model.define('student', {
        // 自动生成id
        name: STRING,
        age: INTEGER
    })

    return Student
}